﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" InventoryAdjustment to change the interface name "IInventoryAdjustmentServices" in both code and config file together.
    [ServiceContract]
    public interface IInventoryAdjustmentServices
    {
        [OperationContract]
        List<InventoryAdjustmentDTO> GetList(int page, out long recordCount, string sortProperty = null,
                                             string sortType = "ASC");

        [OperationContract]
        bool Save(InventoryAdjustmentDTO InventoryAdjustmentDTO);

        [OperationContract]
        bool Delete(InventoryAdjustmentDTO InventoryAdjustment);

        [OperationContract]
        List<InventoryAdjustmentDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                                       out long recordCount);

        [OperationContract]
        List<InventoryAdjustmentDTO> GetAllInventoryAdjustment();

        [OperationContract]
        InventoryAdjustmentDTO GetInventoryAdjustment(string kodeInventoryAdjustment);

        [OperationContract]
        List<InventoryAdjustmentDTO> GetInventoryAdjustmentList(string kodeInventoryAdjustment);

        [OperationContract]
        bool DeleteDetail(InventoryAdjustmentDetailDTO InventoryAdjustmentDetail);

        //[OperationContract]
        //string GetLastNoAdjustment();

        [OperationContract]
        bool SendEmail(InventoryAdjustmentDTO obj, String DestinationFolder);

        [OperationContract]
        void UpdateStatus(InventoryAdjustmentDTO inventoryAdjustmentDto, Status status);

         [OperationContract]
        void Posting(IEnumerable<InventoryAdjustmentDTO> InventoryAdjustmentDtos);

         [OperationContract]
        void UnPosting(IEnumerable<InventoryAdjustmentDTO> InventoryAdjustmentDtos);

        [OperationContract]
        IEnumerable<InventoryAdjustmentDTO> GetListByPeriode(DateTime tglstart, DateTime tglend);
    }
}